package com.gavin.netflix.ribbonclient.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @author: Gavin
 * Description:
 * Date: 2019/1/18 Time: 15:59
 * Zhan Hong Copyright (c) 2018 All Rights Reserved.
 **/
@Component
public class ServiceConfig {
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
